package com.cyy.bean;

public class record {
    int recordId;
    String userName;
    String productName;
    int price ;
    int num;
    String time;
    int usability;

    public record(int recordId, String userName, String productName, int price, int num, String time,int usability) {
        this.recordId = recordId;
        this.userName = userName;
        this.productName = productName;
        this.price = price;
        this.num = num;
        this.time = time;
        this.usability=usability;
    }

    @Override
    public String toString() {
        return "record{" +
                "recordId=" + recordId +
                ", userName='" + userName + '\'' +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", time='" + time + '\'' +
                ", usability='" + usability + '\'' +
                '}';
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getUsability() {
        return usability;
    }

    public void setUsability(int usability) {
        this.usability = usability;
    }
}
